<template>
    <van-form @submit="onSubmit">
        <van-cell-group inset>
            <van-field
                    v-model="editUser.currentValue"
                    :name="editUser.editKey"
                    :label="editUser.editName"
                    placeholder="用户名3"
                    :rules="[{ required: true, message: '请填写用户名4    ' }]"
            />

        </van-cell-group>
        <div style="margin: 16px;">
            <van-button round block type="primary" native-type="submit">
                提交
            </van-button>
        </div>
    </van-form>

</template>

<script setup lang="ts">
import {ref} from "vue";
import {useRoute} from "vue-router";

var route = useRoute();

const username = ref('');
const password = ref('');
const onSubmit = (values) => {
    console.log('submit', values);
};
let editUser={
    editKey: route.query.editKey,
    currentValue: route.query.currentValue,
    editName: route.query.editName
}
</script>

<style scoped>

</style>